/**
 *  Copyright 2010 ShenYang voole Co. Ltd.
 *  All right reserved. 
 */
package cn.piaoyi.service;

import java.util.List;

import cn.piaoyi.bean.Address;
import cn.piaoyi.bean.Admin;
import cn.piaoyi.exception.PiaoyiException;

/**
 * 功能描述:地址事务接口
 *
 * 创建日期 Apr 10, 2010
 *
 * @author zhangbaochao
 *
 * @version 1.0
 *
 */
public interface AddressService {
	/**
	 * 保存Address对象
	 * 
	 * @param admin
	 * 			Address对象
	 * @return Address
	 * 			Address对象
	 */
	public Address createAddress(Address address) throws PiaoyiException;
	
	/**
	 * 保存Address对象
	 * 
	 * @param address
	 * 			Address对象
	 * @return Address
	 * 			Address对象
	 */
	public Address updateAddress(Address address) throws PiaoyiException;
	
	/**
	 * 根据主键UID获取Address对象
	 * 
	 * @param uid
	 * 			主键ID
	 * @return Address
	 * 			Address对象
	 */
	public Address finAddressByUId(long uid);
}
